package com.hd.abc.user;

import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

public class user implements Serializable {
      private int id;
      private int categoryid;
      private String title;
      private String summary;
      private String uploaduser;
      @DateTimeFormat(pattern = "yyyy-MM-dd")
      private Date createdate;

    public user(int id, int categoryid, String title, String summary, String uploaduser) {
        this.id = id;
        this.categoryid = categoryid;
        this.title = title;
        this.summary = summary;
        this.uploaduser = uploaduser;
    }

    @Override
    public String toString() {
        return "user{" +
                "id=" + id +
                ", categoryid=" + categoryid +
                ", title='" + title + '\'' +
                ", summary='" + summary + '\'' +
                ", uploaduser='" + uploaduser + '\'' +
                ", createdate=" + createdate +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getCategoryid() {
        return categoryid;
    }

    public void setCategoryid(int categoryid) {
        this.categoryid = categoryid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getUploaduser() {
        return uploaduser;
    }

    public void setUploaduser(String uploaduser) {
        this.uploaduser = uploaduser;
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public user() {
    }

    public user(int id, int categoryid, String title, String summary, String uploaduser, Date createdate) {
        this.id = id;
        this.categoryid = categoryid;
        this.title = title;
        this.summary = summary;
        this.uploaduser = uploaduser;
        this.createdate = createdate;
    }
}
